<?php

namespace App\Kuafu\Shop\Enum;

class AreaCacheEnum
{
    private const AREA_LISTS = 'area-lists';



    /**
     * 获取省市区列表
     *
     * @param int $areaId
     * @return string
     */
    public static function getAreaLists(int $areaId): string
    {
        return sprintf(self::AREA_LISTS . ":%d", $areaId > 0 ? $areaId : 0);
    }

    /**
     * 获取所有省市区列表
     *
     * @return string
     */
    public static function getListAll(): string
    {
        return self::AREA_LISTS . ":all";
    }


}
